<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改需求信息库')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-DemandInfo-edit" th:object="${demandInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">单位名称：</label>
                    <div class="col-sm-8">
                        <input name="remark" th:field="*{remark}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">需求名称：</label>
                    <div class="col-sm-8">
                        <input name="demandName" th:field="*{demandName}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">行业领域：</label>
                    <div class="col-sm-8">
                        <select name="industry" th:field="*{industry}" class="form-control" required>
                            <option value="">请选择行业领域</option> <!-- 默认提示选项 -->
                            <option value="农业">农业</option>
                            <option value="工业">工业</option>
                            <option value="信息技术">信息技术</option>
                            <option value="生物医药">生物医药</option>
                            <option value="节能环保">节能环保</option>
                            <option value="新材料">新材料</option>
                            <option value="金融">金融</option>
                            <option value="教育">教育</option>
                            <option value="其他">其他</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">需求描述：</label>
                    <div class="col-sm-8">
                        <textarea name="demandDesc" class="form-control" rows="10" style="width: 100%; min-height: 300px; resize: vertical;"
                            placeholder="请输入需求描述（最多不超过2000字）">[[*{demandDesc}]]</textarea>
                    </div>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "business/DemandInfo";
        $("#form-DemandInfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-DemandInfo-edit').serialize());
            }
        }
    </script>
</body>
</html>